package szte.objectorgy.collections;

/**
 * General collection interface.
 * 
 * @author Csilla-Andrea KAPUSI
 * @param <T>
 *            The type of the elements stored in this collection.
 */
public interface Collection<T extends Comparable<T>> {

	public void add(T element);

	public void addAll(Collection<T> collection);

	public void clear();

	public boolean contains(T element);

	public boolean isEmpty();

	public Iterator<T> getIterator();

	public void remove(T element);

	public void removeAll(Collection<T> collection);

	public int size();

	public Object[] toArray();
}
